Package org.dogtagpki.legacy.core.policy
Class GeneralNameConfig
java.lang.Object
org.dogtagpki.legacy.core.policy.GeneralNameConfig
- All Implemented Interfaces:
IGeneralNameConfig
- Direct Known Subclasses:
GeneralNameAsConstraintsConfig
,SubjAltNameGN
convenience class for policies use.
-
Field Summary
FieldsModifier and TypeFieldDescriptionorg.mozilla.jss.netscape.security.x509.GeneralName
boolean
boolean
-
Constructor Summary
ConstructorsConstructorDescriptionGeneralNameConfig
(String name, ConfigStore config, boolean isValueConfigured, boolean isPolicyEnabled) -
Method Summary
Modifier and TypeMethodDescriptionorg.mozilla.jss.netscape.security.x509.GeneralName
formGeneralName
(String value) Form a general name from the value string.org.mozilla.jss.netscape.security.x509.GeneralName
formGeneralName
(String choice, String value) Vector
<org.mozilla.jss.netscape.security.x509.GeneralName> formGeneralNames
(Object value) Forms general names from the given value.static void
getDefaultParams
(String name, boolean isValueConfigured, Vector<String> params) Get default paramsstatic void
getExtendedPluginInfo
(String name, boolean isValueConfigured, Vector<String> info) Get extended plugin infovoid
getInstanceParams
(Vector<String> params) Get instance paramsgetName()
getValue()
boolean
-
Field Details
-
mName
-
mNameDot
-
mConfig
-
mGenNameChoice
-
mIsValueConfigured
public boolean mIsValueConfigured -
mValue
-
mGeneralName
public org.mozilla.jss.netscape.security.x509.GeneralName mGeneralName -
mIsPolicyEnabled
public boolean mIsPolicyEnabled -
mNameDotChoice
-
mNameDotValue
-
-
Constructor Details
-
GeneralNameConfig
public GeneralNameConfig(String name, ConfigStore config, boolean isValueConfigured, boolean isPolicyEnabled) throws EBaseException - Throws:
EBaseException
-
-
Method Details
-
formGeneralName
public org.mozilla.jss.netscape.security.x509.GeneralName formGeneralName(String value) throws EBaseException Form a general name from the value string.- Specified by:
formGeneralName
in interfaceIGeneralNameConfig
- Parameters:
value
- general name in string- Returns:
- general name object
- Throws:
EBaseException
- failed to form general name
-
formGeneralName
public org.mozilla.jss.netscape.security.x509.GeneralName formGeneralName(String choice, String value) throws EBaseException - Throws:
EBaseException
-
formGeneralNames
public Vector<org.mozilla.jss.netscape.security.x509.GeneralName> formGeneralNames(Object value) throws EBaseException Description copied from interface:IGeneralNameConfig
Forms general names from the given value.- Specified by:
formGeneralNames
in interfaceIGeneralNameConfig
- Parameters:
value
- general name in string- Returns:
- a vector of General names from a value that can be either a Vector of strings, string array or just a string. Returned Vector can be null if value is not of expected type.
- Throws:
EBaseException
- failed to form general name
-
getName
-
getConfig
-
getGenNameChoice
-
getValue
-
isValueConfigured
public boolean isValueConfigured() -
getDefaultParams
Get default params -
getInstanceParams
Get instance params- Specified by:
getInstanceParams
in interfaceIGeneralNameConfig
- Parameters:
params
- parameters
-
getExtendedPluginInfo
public static void getExtendedPluginInfo(String name, boolean isValueConfigured, Vector<String> info) Get extended plugin info
-